import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var RightDataGridComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(RightDataGridComponentViewmodelForm, _super);
    function RightDataGridComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'code',
            name: "{{code_571f9c81_j8pe}}",
            binding: 'code',
            updateOn: 'blur',
            defaultI18nValue: '编号',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], RightDataGridComponentViewmodelForm.prototype, "code", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'name',
            name: "{{name_b5e0f4e3_322l}}",
            binding: 'name',
            updateOn: 'blur',
            defaultI18nValue: '名称',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], RightDataGridComponentViewmodelForm.prototype, "name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'state',
            name: "{{state_cf4fbd07_tshy}}",
            binding: 'state',
            updateOn: 'blur',
            defaultI18nValue: '状态',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], RightDataGridComponentViewmodelForm.prototype, "state", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'organization',
            name: "{{organization_fc9962d4_giqo}}",
            binding: 'organization',
            updateOn: 'blur',
            defaultI18nValue: '组织',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], RightDataGridComponentViewmodelForm.prototype, "organization", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'gender',
            name: "{{gender_8f6b7737_uvul}}",
            binding: 'gender',
            updateOn: 'blur',
            defaultI18nValue: '性别',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], RightDataGridComponentViewmodelForm.prototype, "gender", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'countryOrArea',
            name: "{{countryOrArea_655a3ad6_wf3q}}",
            binding: 'countryOrArea',
            updateOn: 'blur',
            defaultI18nValue: '所属国家或地区',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], RightDataGridComponentViewmodelForm.prototype, "countryOrArea", void 0);
    RightDataGridComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '组织人员',
            enableValidate: false
        }),
        Injectable()
    ], RightDataGridComponentViewmodelForm);
    return RightDataGridComponentViewmodelForm;
}(Form));
export { RightDataGridComponentViewmodelForm };
